import request from '@/utils/request';

// 查询数据列表列表
export function devicesList(query) {
  return request({
    url: '/devices/devices/list',
    method: 'get',
    params: query
  });
}

// 按照类别查询所需的下拉数据
export function getSelectTypeList(data) {
  return request({
    url: '/devices/devices/selectTypeList',
    method: 'post',
    data: data
  });
}

// 修改数据
export function updateDevices(data) {
  return request({
    url: '/devices/devices',
    method: 'put',
    data: data
  });
}

// 数据列表不分页
export function getDevicesActionMessage(data) {
  return request({
    url: '/devices/devices/noPageList',
    method: 'post',
    data: data
  });
}

// 数据统计
export function queryingStatistics(data) {
  return request({
    url: '/devices/devices/queryingStatistics',
    method: 'post',
    data: data
  });
}

// 获取项目配置详细信息
export function getConfigData(data) {
  return request({
    url: '/devices/config/getData',
    method: 'post',
    data: data
  });
}

// 清空当前分类数据
export function removeDevices(dataIds) {
  return request({
    url: '/devices/devices/' + dataIds,
    method: 'delete'
  });
}

// 获取外部count接口
export function getPhpCountStatistics(data) {
  return request({
    url: '/devices/devices/getPhpCount',
    method: 'post',
    data: data
  });
}
